package com.clusterswisdom.horn.api.ioc.api;

public enum ParamType {
	
	NUMBER("Number"),
	
	BOOLEAN("Boolean"),
	
	STRING("String"),
	
	DATE("Date"),
	
	PRICE("Price"),
	
	BYTEARRAY("byte[]"),
	
	STRUCTFIELDS("StructFields"),
	
	LIST("List"),
	
	IMAGE("Image");

	String value;
	
	ParamType(String value) {
		this.value = value;
	}

	public String getValue() {
		return value;
	}
	
	public static ParamType findByName(String name) {
		for (ParamType item : values()) {
			if (item.getValue().equals(name)) {
				return item;
			}
		}
		
		return STRING;
	}
}
